package com.appspot.etao.service;

import com.appspot.etao.Constant;
import com.taobao.top.TopJsonRestClient;
import com.taobao.top.TopRestClient;

public class ClientFactory {

	public static TopJsonRestClient getJsonClient() {
		TopJsonRestClient client = new TopJsonRestClient(Constant.ENV, Constant.APP_KEY, Constant.APP_SECRET);;
		
		return client;
	}
	
	public static TopRestClient getRestClient() {
		TopRestClient client = new TopRestClient(Constant.ENV, Constant.APP_KEY, Constant.APP_SECRET);
		
		return client;
	}
}
